package com.ruoyi.record.domain;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 调拨记录对象 allot_record
 * 
 * @author cy
 * @date 2024-11-05
 */
public class AllotRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单号编剧 */
    @Excel(name = "单号编剧")
    private String document;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String goodNo;

    /** 原仓库 */
    @Excel(name = "原仓库")
    private Long primaryWarehouseId;

    /** 原库区id */
    @Excel(name = "原库区id")
    private Long primaryAreaId;

    /** 原货架id */
    @Excel(name = "原货架id")
    private Long primaryShelfId;

    /** 原货位id */
    @Excel(name = "原货位id")
    private Long primaryLocationId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime allotDate;

    @Override
    public String toString() {
        return "AllotRecord{" +
                "document='" + document + '\'' +
                ", goodNo='" + goodNo + '\'' +
                ", primaryWarehouseId=" + primaryWarehouseId +
                ", primaryAreaId=" + primaryAreaId +
                ", primaryShelfId=" + primaryShelfId +
                ", primaryLocationId=" + primaryLocationId +
                ", allotDate=" + allotDate +
                ", goodsName='" + goodsName + '\'' +
                ", primaryLocation='" + primaryLocation + '\'' +
                ", allotLocation='" + allotLocation + '\'' +
                '}';
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getPrimaryLocation() {
        return primaryLocation;
    }

    public void setPrimaryLocation(String primaryLocation) {
        this.primaryLocation = primaryLocation;
    }

    public String getAllotLocation() {
        return allotLocation;
    }

    public void setAllotLocation(String allotLocation) {
        this.allotLocation = allotLocation;
    }

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 出库位置 */
    @Excel(name = "出库位置")
    private String primaryLocation;

    /** 调拨位置 */
    @Excel(name = "调拨位置")
    private String allotLocation;

    public void setDocument(String document) 
    {
        this.document = document;
    }

    public String getDocument() 
    {
        return document;
    }
    public void setGoodNo(String goodNo) 
    {
        this.goodNo = goodNo;
    }

    public String getGoodNo() 
    {
        return goodNo;
    }
    public void setPrimaryWarehouseId(Long primaryWarehouseId) 
    {
        this.primaryWarehouseId = primaryWarehouseId;
    }

    public Long getPrimaryWarehouseId() 
    {
        return primaryWarehouseId;
    }
    public void setPrimaryAreaId(Long primaryAreaId) 
    {
        this.primaryAreaId = primaryAreaId;
    }

    public Long getPrimaryAreaId() 
    {
        return primaryAreaId;
    }
    public void setPrimaryShelfId(Long primaryShelfId) 
    {
        this.primaryShelfId = primaryShelfId;
    }

    public Long getPrimaryShelfId() 
    {
        return primaryShelfId;
    }
    public void setPrimaryLocationId(Long primaryLocationId) 
    {
        this.primaryLocationId = primaryLocationId;
    }

    public Long getPrimaryLocationId() 
    {
        return primaryLocationId;
    }
    public void setAllotDate(LocalDateTime allotDate)
    {
        this.allotDate = allotDate;
    }

    public LocalDateTime getAllotDate()
    {
        return allotDate;
    }

}
